package edu.spec.basic.service.iface;

import edu.spec.basic.model.User;
import edu.spec.basic.model.dto.UserDto;
import edu.spec.basic.model.enumeration.YesNo;
import org.madgecko.basic.model.Pager;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;

public interface IUserService {
	void add(User user);
	void delete(Integer id);
	void update(User user);
	boolean importIn(MultipartFile file, HttpServletRequest req, HttpSession session);
	User load(Integer id);
	User loadByName(String name);
    User loadByOpenId(String openId);
	Pager<User> findUserByCon(Integer status, String con);
	List<Integer> listIdsByFormal(YesNo yesNo);
    List<Integer> listIdsByCommunist(YesNo yesNo);
    List<User> listAll();
    List<UserDto> listUserDtoByIdString(String idString);
}